﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace MyWeb.TaskGrpc.Models
{
    [Table("TaskLog")]
    public class TaskLog
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Description("主键Id")]
        public long Id { get; set; }
        /// <summary>
        /// 任务Id
        /// </summary>
        [Description("任务Id")]
        public long? JobsId { get; set; }
        /// <summary>
        /// 任务名
        /// </summary>
        [Description("任务名")]
        public string TaskName { get; set; } = string.Empty;
        /// <summary>
        /// 分组名
        /// </summary>
        [Description("分组名")]
        public string GroupName { get; set; } = string.Empty;
        /// <summary>
        /// 日志类型
        /// </summary>
        [Description("日志类型")]
        public string LogType { get; set; } = string.Empty;
        /// <summary>
        /// 任务类型(1.DLL类型,2.API类型)
        /// </summary>
        [Description("任务类型(1.DLL类型,2.API类型)")]
        public int TaskType { get; set; }
        /// <summary>
        /// 执行目标
        /// </summary>
        [Description("执行目标")]
        public string ExecTarget { get; set; } = string.Empty;
        /// <summary>
        /// 请求参数
        /// </summary>
        [Description("请求参数")]
        public string RequestParam { get; set; } = string.Empty;
        /// <summary>
        /// 响应参数
        /// </summary>
        [Description("响应参数")]
        public string? ResponseParam { get; set; } = string.Empty;
        /// <summary>
        /// 执行开始时间
        /// </summary>
        [Description("执行开始时间")]
        public DateTime? BeginDate { get; set; }
        /// <summary>
        /// 执行开始时间
        /// </summary>
        [Description("执行结束时间")]
        public DateTime? EndDate { get; set; }
    }
}
